package br.com.robot.util;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;

import controller.cartolafc.CartolaRobot;
import controller.steam.SteamRobot;

public class RobotList 
{
	private        List<RobotBean>  lista     = new ArrayList<RobotBean>( );
	private static RobotList        container;
	
	private RobotList( )
	{
		RobotBean[] array =
		{
			new RobotBean( "Steam-robot",   SteamRobot.class   ),
			new RobotBean( "Cartola-robot", CartolaRobot.class ),
		};
		
		this.lista = Arrays.asList( array );
	}
	
	public static RobotList getContainer( )
	{
		if( container == null )
			container = new RobotList( );
		
		return container;
	}
	
	public List<RobotBean> getLista( ) 
	{
		return lista;
	}
}